package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.EmployeesGroup;
import dao.ABSBasicDAO;

/**
 * 
* @ClassName: EmployeesGroupDAOImpl
* @Description:员工组DAO实现类
* @author chenchao
* @date 2013-10-31 上午02:49:42
*
 */
public class EmployeesGroupDAOImpl  extends ABSBasicDAO<EmployeesGroup>{
	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public EmployeesGroupDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
		// TODO Auto-generated constructor stub
	}
	

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getAll()
	 */
	@Override
	public List<EmployeesGroup> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return sqlMapClient.queryForList("EmployeesGroup.getAll");
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getById(java.lang.String)
	 */
	@Override
	public EmployeesGroup getById(String id) throws SQLException {
		// TODO Auto-generated method stub
		return (EmployeesGroup)sqlMapClient.queryForList("EmployeesGroup.getById",id);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getByPK()
	 */
	@Override
	public EmployeesGroup getByPK() {
		// TODO Auto-generated method stub
		return super.getByPK();
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(EmployeesGroup t) throws SQLException {
		sqlMapClient.insert("EmployeesGroup.insertEmployeesGroupInfo", t);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#updateT(java.lang.Object)
	 */
	@Override
	public void updateT(EmployeesGroup t) throws SQLException {
		sqlMapClient.update("EmployeesGroup.updateEmployeesGroupInfo",t);
	}

}
